<?php
$this->breadcrumbs=array(
	$valname,
);

$this->menu=array(
	
);
?>

<h1><?=$valname?></h1>


<div class="">
<?php echo CHtml::form('','post'); ?>
 
<?php echo CHtml::errorSummary($model);?>
<table class="table">
	<tr><td>
	<div class="control-group">
		<label class="control-label" for="">图片链接</label>
		<div class="controls">
		<input class = "input-large pull-left" maxlength="500" id = "keynameA" name = "keynameA" value = "<?=isset($modelA->c_value)?$modelA->c_value:''?>"/>
		<p class="error pull-left pl8">选填!</p>
		</div>
	</div>
</td></tr>
<tr><td>
<div class="control-group">
<label class="control-label" for="c_value">上传文件</label>
<div class="controls">
<div class="pull-left">
<a class="btn btn-mini btn-danger 	"  onclick="openUploadImage('chanpin')">文件<?=!$model->c_value?"上传":"修改"?></a>
</div>
<p for="c_value" class="error" style=""><?=isset($model->errors['c_value'])?join('',$model->errors['c_value']):""?></p>
<p class="pull-left pl8" style="<?=isset($model->errors['c_value'])?"":""?>">图片大小253*280!</p>
</div>
</div>
</td></tr>
<tr><td>
	<img src = "/images/sbanner/chanpin.jpg" style = "width:253px;height:280px;"/>
	<input name = "shuaxin" type = "button" value = "刷新" onclick="window.location=window.location" 'class'='btn btn-primary' />
</td></tr>
<tr><td>
<div class="">
<?php $this->widget('ext.ckeditor.CKEditorWidget',array(
  "model"=>$model,                 # Data-Model
  "attribute"=>'c_value',          # Attribute in the Data-Model
  "defaultValue"=>$model->c_value,     # Optional

  # Additional Parameter (Check http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html)
  "config" => array(
      "height"=>"280px",
      "width"=>"400px",
      "toolbar"=>"Full",
      ),

  #Optional address settings if you did not copy ckeditor on application root
  "ckEditor"=>Yii::app()->basePath."/../ckeditor/ckeditor.php",
                                  # Path to ckeditor.php
  "ckBasePath"=>Yii::app()->baseUrl."/ckeditor/",
                                  # Realtive Path to the Editor (from Web-Root)
  ) ); ?>
</div>
 </td></tr>
<tr><td>
<div class="">
<label class="control-label" >详细页面</label>
<?php $this->widget('ext.ckeditor.CKEditorWidget',array(
  "model"=>$modelB,                 # Data-Model
  "attribute"=>'c_valueB',          # Attribute in the Data-Model
  "defaultValue"=>$modelB->c_value,     # Optional

  # Additional Parameter (Check http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html)
  "config" => array(
      "height"=>"700px",
      "width"=>"1002px",
      "toolbar"=>"Full",
      ),

  #Optional address settings if you did not copy ckeditor on application root
  "ckEditor"=>Yii::app()->basePath."/../ckeditor/ckeditor.php",
                                  # Path to ckeditor.php
  "ckBasePath"=>Yii::app()->baseUrl."/ckeditor/",
                                  # Realtive Path to the Editor (from Web-Root)
  ) ); ?>
</div>
 </td></tr>
 <tr><td>
<div class="action">
<?php echo CHtml::submitButton('提交说说',array('class'=>'btn btn-primary')); ?>
</div>
 </td></tr>
 </table>
</form>
</div><!-- yii表单 -->